﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="TagManage.aspx.cs" Inherits="GoShopping.Web.ProductManager.TagManage" Title="无标题页" %>
<%@ Register assembly="GoShopping.Components" namespace="BaseText" tagprefix="cc1" %>
<%@ Register assembly="ExtensionGridView" namespace="ExtensionControls" tagprefix="cc2" %>
<%@ MasterType VirtualPath="ProductManage.Master" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> 
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>  
    <table class="style1">
        <tr>
            <td style="width: 81px">
                <asp:Label ID="Label1" runat="server" Text="标签名:"></asp:Label>
            </td>
            <td>
                <cc1:ZLTextBox ID="zlTxtTagName" runat="server"></cc1:ZLTextBox>
                <asp:Button ID="btnAdd" runat="server" Text="添加" onclick="btnAdd_Click" />
                
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="zlTxtTagName" ErrorMessage="RequiredFieldValidator" 
                    SetFocusOnError="True">标签名不能为空!</asp:RequiredFieldValidator>
                
            </td>
        </tr>
        <tr>
            <td style="width: 81px">
                <asp:Label ID="Label2" runat="server" Text="标签列表"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
        <asp:GridView ID="extGVTag" runat="server" RecordCount="-1" Width="400px" AutoGenerateColumns="False" 
        AllowPaging="True"  onpageindexchanging="extGVTag_PageIndexChanging" EmptyDataText="No tag data!">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:CheckBox ID="cbAll" runat="server" 
                            oncheckedchanged="cbAll_CheckedChanged" AutoPostBack="true" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="cbSingle" runat="server" />
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="ID">
                    <HeaderTemplate>
                        <asp:Label ID="Label3" runat="server" Text="ID"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="标签名">
                    <HeaderTemplate>
                        <asp:Label ID="Label4" runat="server" Text="标签名"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblTagName" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
<%--                <cc2:ExtensionGridView ID="extGVTag" runat="server" 
                    AutoGenerateColumns="False" PagerText="当前第{0}页,共{1}页{2}条记录" 
                    RecordCount="-1" Width="400px" AllowPaging="True" 
                    onpageindexchanging="extGVTag_PageIndexChanging" 
                    EmptyDataText="No tag data!" >
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:CheckBox ID="cbAll" runat="server" 
                                    oncheckedchanged="cbAll_CheckedChanged" AutoPostBack="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="cbSingle" runat="server" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ID">
                            <HeaderTemplate>
                                <asp:Label ID="Label3" runat="server" Text="ID"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="标签名">
                            <HeaderTemplate>
                                <asp:Label ID="Label4" runat="server" Text="标签名"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblTagName" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                </cc2:ExtensionGridView>--%>
       </ContentTemplate>
</asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td style="width: 81px">
                <asp:Button ID="btnDel" runat="server" Text="删除" onclick="btnDel_Click" 
                    CausesValidation="False" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
   </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
